<?php
if ( ! defined( 'IN_IPB' ) )
{
	print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
	exit();
}

class component_init
{
	var $ipsclass;
	
	function run_init()
	{
		if(!file_exists(ROOT_PATH."sources/market/market_class.php") || !file_exists(ROOT_PATH."sources/components_public/market.php") || !file_exists(ROOT_PATH."sources/components_acp/market.php"))
		{
			$this->ipsclass->lang['no_uploaded'] = "You do not have all the files uploaded";
			$this->ipsclass->Error(array('MSG'=>'no_uploaded'));
		}
		
		@call_user_func(array(&$this->ipsclass->print,'_check_ips_report')) !== NULL ? die() : '';
		
		require_once(ROOT_PATH."sources/market/market_class.php");
		$this->ipsclass->market_class            =  new market_class();
		$this->ipsclass->market_class->ipsclass  =& $this->ipsclass;
		$this->ipsclass->market_class->init_class();
		
		$this->ipsclass->cache_array[] = 'bbcode';
		$this->ipsclass->cache_array[] = 'badwords';
		$this->ipsclass->cache_array[] = 'emoticons';
		$this->ipsclass->cache_array[] = 'market_category';
		$this->ipsclass->cache_array[] = 'market_items';
		$this->ipsclass->cache_array[] = 'market_plugin';
		$this->ipsclass->cache_array[] = 'market_wages';
		$this->ipsclass->cache_array[] = 'market_taxes';
	}
}

?>